<%--
  Created by IntelliJ IDEA.
  User: zhengshuai
  Date: 2020/1/8
  Time: 11:05 AM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>createProduct</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <%--menubar2--%>
    <nav class="navbar navbar-expand-sm navbar-light bg-light mb-3">
        <div class="container">
            <a class="navbar-brand" href="/home">Home</a>
            <ul class="navbar-nav collapse navbar-collapse">
                <li class="nav-item">
                    <a class="nav-link" href="/create">create Product</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/showProd">show Product</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/login">Login</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">Logout</a>
                </li>
            </ul>
            <%--search--%>
            <form action="searchProd" method="post" class="form-inline my-2 my-lg-0">
                <input name="productName" class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
                <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
            </form>
        </div>
    </nav>
</head>
<body>


<div class="container">
    <form action="saveProd" method="get">
        <!-- TEXT FIELD GROUPS -->
        <div class="form-group">
            <label>Product Image:</label>
            <input class="form-control" type="text" id="name" name="image" placeholder="Image">
        </div>
        <div class="form-group">
            <label>Product Name:</label>
            <input class="form-control form-control" type="text" name="name"  placeholder="Name">
        </div>
        <div class="form-group">
            <label>Product description:</label>
            <input class="form-control form-control" type="text" name="description" placeholder="Description">
        </div>
        <div class="form-group">
            <label>Product Price:</label>
            <input class="form-control" type="text" name="price" placeholder="Price">
        </div>
        <button class="btn btn-primary btn-block" type="submit">Submit</button>
    </form>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>

<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>
